package com.example.demo.repository;

import com.example.demo.model.GymMembership;
import com.example.demo.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface GymMembershipRepository extends JpaRepository<GymMembership,Long> {
    @Query(value = "select * from gymMembership where name = ?1 and age = ?2", nativeQuery = true)
    List<GymMembership> findByNameOrAge(String name, String age);
}



